home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / SCRCONS.MO_ / scrcons.mof
Encoding:
Text File  |  1999-10-07  |  2.5 KB  |  83 lines

  1. #pragma namespace ("\\\\.\\Root\\Default")
  2.  
  3. qualifier description: amended;
  4.  
  5. [locale(0x409)]
  6. class ActiveScriptEventConsumer : __EventConsumer
  7. {
  8.     [key] string Name;
  9.  
  10.     [not_null, description("Name of the scripting engine, ex: VBScript")]
  11.     string ScriptingEngine;
  12.  
  13.     [Template, description("Text of the script, expressed in a language"
  14.                  "known to the scripting engine.")]
  15.     string ScriptText;
  16.  
  17.     [description("Filename of a script file to be run, note that this"
  18.                  "is intended as an alternative to specifying the text"
  19.                  "of the script in ScriptText.  Results are undefined"
  20.                  "if both properties are assigned values.")]
  21.     string ScriptFilename;
  22.  
  23.     [description("Number of seconds that the script is allowed to run,"
  24.                  "if zero script will not be terminated.  Applies"
  25.                  "only to scripts specified in the ScriptText property.")]    
  26.     uint32 KillTimeout = 0;
  27. };
  28.  
  29. instance of __Win32Provider as $P
  30. {
  31.     Name = "ActiveScriptEventConsumer";
  32.     Clsid = "{266c72e7-62e8-11d1-ad89-00c04fd8fdff}";
  33.  
  34.     PerUserInitialization = TRUE;
  35. };
  36.  
  37. instance of __EventConsumerProviderRegistration
  38. {
  39.     Provider = $P;
  40.     ConsumerClassNames = {"ActiveScriptEventConsumer"};
  41. };
  42.  
  43.  
  44.  
  45. #pragma namespace ("\\\\.\\Root")
  46.  
  47. instance of __Namespace
  48. {
  49.     Name = "CIMV2";
  50. };
  51.  
  52. #pragma namespace ("\\\\.\\Root\\CIMV2")
  53.  
  54. [locale(0x409),Singleton, Description("Provides registration data"
  55. "common to all instances of the Scripting Standard Consumer")]
  56. class ScriptingStandardConsumerSetting : CIM_Setting
  57. {
  58.     [Read, Override ("SettingID")]
  59.     string SettingID = "ScriptingStandardConsumerSetting";
  60.  
  61.     [Read, Override ("Caption")]
  62.     string Caption = "Scripting Standard Consumer Setting";
  63.  
  64.     [Read, Override ("Description")]
  65.     string Description = "Registration data common to all instances of the Scripting Standard Consumer";
  66.     
  67.     [Read, Description("Maximum number of scripts run before the consumer"
  68.     "will start a new instance.  The consumer should be shut down"
  69.     "periodically to clear out memory leaks from the scripts.")]
  70.     uint32 MaximumScripts = 300;
  71.  
  72.     [Read, Description("Maximum number of minutes before the consumer"
  73.     "will start a new instance.  If zero, consumer lifetime is"
  74.     "controlled by the MaximumScripts property. Valid Range: 0-71,000."), 
  75.     units ("Minutes")]
  76.     uint32 Timeout = 0;
  77. };
  78.  
  79. instance of ScriptingStandardConsumerSetting
  80. {
  81.     MaximumScripts = 300;
  82.     Timeout = 0;
  83. };